<html>
 <head>
	<title>{% block title %}pycite -welcome to pycite{% endblock %}</title>
	<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
	<link type="text/css" rel="stylesheet" href="/stylesheets/jqmodal.css" />
	<link rel="alternate" type="application/atom+xml" title="Atom feed for this page"  href="{{ request_uri }}{{ request_uri_appendchar }}fmt=atom" />
</head>
<body>
	<script type="text/javascript" src="/javascript/jquery.js"></script>
	<script type="text/javascript" src="/javascript/jqmodal.js"></script>
	<script type="text/javascript" src="/javascript/pycite.js"></script>
<script>
$(document).ready(function() {
	$('#add_dialog').jqm({trigger: '#bookmarkLink'});
});
</script>
<div id='title'>
<a href='/'><div class='title_logo'>py<b>cite</b></div></a>
<div class='title_menu'><a href='/help'>Help</a></div>
<div class='title_menu'>
{% if user %}
logged in as <b><a href='/settings'>{{ user }}</a></b> <a href="{{ url }}">(log out?)</a>
{% else %}
<a href="{{ url }}">Log in or register</a>
{% endif %}
</div>
<div class='clear_both'>&nbsp;</div>
</div>
<div id='navheader'>
{% block navheader %}
{% if filter_user %}
	You're looking at <b>{{ filter_user }}'s</b> library (<a href='/{% if filter_tag %}tags/{{ filter_tag }}{% endif %}'>see everybody's instead?</a>) 
	{% if filter_tag %}
	tagged with <b>{{ filter_tag }}</b> (<a href='/users/{{ filter_user }}'>see all instead?</a>)
	{% endif %}
	{% if filter_keyword %} 
	containing keyword <b>{{ filter_keyword}}</b> 
	{% endif %}
{% else %}
	You're looking at <b>everybody's</b> bookmarks
	{% if filter_tag %}
	tagged with <b>{{ filter_tag }}</b> (<a href='/'>see all?</a>)
	{% endif %}
	{% if filter_keyword %} 
	containing keyword <b>{{ filter_keyword}}</b> 
	{% endif %}
{% endif %}
(<a href='{{ request_uri }}{{ request_uri_appendchar }}fmt=atom'>subscribe?</a>)
{% endblock %}
</div>

<div id='controls'>
<a href="#" id='bookmarkLink' class="jqModal">add a new bookmark</a>
{% if is_admin %}
/ <a href='/removeBookmark?key=all'>delete all bookmarks</a>
{% endif %}
</div>

<!--
<div id='sidebar'>

{% if user %}
<div class='bookmarkbox'>
<b>Manage</b><br/>
<a href="#" class="jqModal">Add a new bookmark</a>
</div>
{% endif %}

<div class='searchbox'>
<b>Search</b><br/>
<form action="/" method="get">
<input type='text' disabled name='q' class='search_input' /> <input type="submit" value="Go"/>
</form>
</div>
{% block sidebar %}
{% endblock %}
</div>
-->

<div id='content'>
{% if error %}
<div class='error'>
{{ error }}
</div>
{% endif %}
{% if status %}
<div class='status'>
{{ status }}
</div>
{% endif %}
{% block content %}
{% endblock %}
</div>

<div class='clear_both'>&nbsp;</div>

<div id='add_dialog' class="jqmWindow">
<b>Save a new bookmark</b>
<form action="/addBookmark" method="post">
      <div>URI:<br/> <input type='text' name="uri" size='60' /></div>
      <div>Title:<br/> <input type='text' name="title" size='60' /></div>
      <div>Description:<br/><textarea name="description" rows="3" cols="60"></textarea></div>
      <div>Tags (comma delimited):<br/> <input type='text' name="tags" rows="3" size='60' /></div>
      <br/>
      <div><input type="submit" value="Save bookmark"> <input type="button" value="Cancel" class='jqmClose'></div>
</form>
</div>

<div id='footer'>
pycite is an open source social bookmarking service based on <a href='http://www.connotea.org'>connotea</a>.
</div>
</body>
</html>
